//
//  ProCollectButton.m
//  LiWuShuo
//
//  Created by 袁小航 on 14/11/13.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "ProCollectButton.h"
#import "Define.h"

@implementation ProCollectButton

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        [self defineButton];
    }
    return self;
}
#pragma mark -  自定义button
- (void)defineButton
{
    self.collectImage = [[UIImageView alloc]initWithFrame:CGRectMake(0, PRO_BUTTON_X, PRO_BUTTON_WIDTH, PRO_BUTTON_HEIGHT)];
    [_collectImage setImage:[UIImage imageNamed:@"collN.png"]];
    [self addSubview:_collectImage];
    
    self.collectNum = [[UILabel alloc]initWithFrame:CGRectMake(_collectImage.bounds.size.width, PRO_BUTTON_X, self.bounds.size.width / 3 * 2, PRO_BUTTON_HEIGHT)];
    [self addSubview:_collectNum];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
